package com.laiketui.order.mapstruct;

import com.laiketui.order.api.params.AgainPlaceOrderParams;
import com.laiketui.order.api.params.PlaceOrderParams;
import com.laiketui.order.api.params.UserPlaceOrderParams;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PlaceOrderParamsMapstructMapper {

    PlaceOrderParamsMapstructMapper INSTANCE = Mappers.getMapper(PlaceOrderParamsMapstructMapper.class);

    @Mapping(ignore = true,target = "remarks",source = "remarks")
    UserPlaceOrderParams toDTO(PlaceOrderParams placeOrderParams);

    UserPlaceOrderParams againToDTO(AgainPlaceOrderParams againPlaceOrderParams);
}
